package com.satan.vote.service;

import com.mybatisflex.core.service.IService;
import com.satan.vote.dto.WxUserInfoDTO;
import com.satan.vote.entity.WxUserInfo;
import com.satan.vote.vo.ResultVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface WxUserInfoService extends IService<WxUserInfo> {
    ResultVO wxLogin(WxUserInfoDTO wxUserInfoDTO);

    ResultVO getUserInfo(String token);

    ResultVO updateNickName(WxUserInfo wxUserInfo, String token);

    ResultVO uploadUserImage(MultipartFile userImage, String token) throws IOException;
}
